package com.vegetable.modules.entity.finance.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.modules.entity.baseData.po.BaseQueryPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 项目盈利情况查询参数PO
 */
@Data
@ApiModel(value = "项目盈利情况查询参数PO", description = "项目盈利情况查询参数PO")
public class ProjectProfitQueryPO extends BaseQueryPO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty(value = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty(value = "支出类型")
    private String expenseType;

    @ApiModelProperty(value = "趋势类型(day:按日/month:按月)")
    private String type = "day";
    
    @ApiModelProperty(value = "商品名称（模糊搜索）")
    private String commodityName;
    
    @ApiModelProperty(value = "供应商名称（模糊搜索）")
    private String supplierName;
    
    @ApiModelProperty(value = "客户名称（模糊搜索）")
    private String customerName;
    
    @ApiModelProperty(value = "地区ID")
    private Integer regionId;
}